home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Astronomy
/
Moon
/
Source
/
HugeMoonView.m
< prev
next >
Wrap
Text File
|
1993-01-19
|
772b
|
36 lines
/* HugeMoonView.m
* Part of the Moon application for the NeXT computer.
* Author: Geoffrey S. Knauth
* Date: January 4, 1992
*
* Permission to copy this program is hereby granted under the terms
* of the Free Software Foundation's GNU General Public License.
*/
#import <appkit/NXImage.h>
#import "HugeMoonView.h"
@implementation HugeMoonView
- initFrame:(const NXRect *)frameRect
{
[super initFrame:frameRect];
image = [[NXImage alloc] initFromSection:"FullMoon.tiff"];
return self;
}
- drawSelf :(const NXRect *)rects :(int)rectCount
{
/* draw the image of the moon */
[image composite:NX_COPY toPoint:&bounds.origin];
return self;
}
- free
{
[image free]; /* Free the image on our way out. */
return [super free];
}
@end